tmem: Use 'struct xen_tmem_oid' in tmem_handle and move it to sysctl header.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 31 Aug 2015 15:13:50 +0000 (11:13 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 2 Sep 2015 12:48:12 +0000 (08:48 -0400)
commit880699a8bd4046b6cbd08a35949cbd1092db4248
tree32b0da25f027630574c428b8e6e62c7882f6233e
parentb657a8ad1fcb2363b379a84f1ac78e902f36c8a8
tmem: Use 'struct xen_tmem_oid' in tmem_handle and move it to sysctl header.

Instead of the three member uint64_t structure.

The structure is used by the control stack for
XEN_SYSCTL_TMEM_OP_SAVE_GET_NEXT_[PAGE|INV] only so
moving it to the sysctl header.

Also modified tmemc_save_get_next_page to deal with
the new type - and converted some of the on-stack
usage of the array to use an pointer.

Further work will be to make the xen_sysctl_tmem_op have
an union with proper type for the two: ..GET_NEXT_[PAGE|INV]
operations.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
tools/libxc/xc_tmem.c
xen/common/tmem.c
xen/include/public/sysctl.h
xen/include/public/tmem.h